package com.master.demo.im.pojo.command;

import com.master.common.api.CommonCommand;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 会话列对象 Command
 *
 * @author: Yang
 * @date: 2022-08-09
 * @version: 1.0.0
 * Copyright Ⓒ 2022 恒翔 Computer Corporation Limited All rights reserved.
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SessionListCommand extends CommonCommand implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    private Long id;

    /**
     * 会话编号
     */
    private String number;

    /**
     * 发送人
     */
    private String sender;

    /**
     * 接收人
     */
    @NotBlank(message = "接收人不允许为空")
    private String receiver;

    /**
     * 状态
     */
    private Integer status;

}
